package com.itheima.Test;

public class Student02 {
   /* private Student02() {
    }

    ;
    private static Student02 s = null;

    public static synchronized Student02 getInstance() {
        if (s == null) {
            s = new Student02();
        }
        return s;
    }*/
   private Student02(){};
   private static Student02 s = null ;
   public static synchronized Student02 getInstance(){
       if(s==null){
           s= new Student02();
       }
       return s;
   }
}
